home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / RGASM.RAR / ASMCODE.EXE / CHAPT1-5 / HELLO3.ASM < prev    next >
Encoding:
Assembly Source File  |  1993-05-10  |  910 b   |  18 lines

  1. ;
  2. ;       Program Hello3 ( Chapter 3 )
  3. ;      
  4. TITLE    Hello Example Program 3   ; title is not necessary
  5. OurProg SEGMENT  PARA  'CODE'              ; declare code segment
  6.     ORG      100h                      ; 100h bytes for PSP 
  7.     ASSUME   CS:OurProg, DS:OurProg,   ; information on program
  8.          ES:OurProg, SS:OurProg    ; structure
  9. Start:  JMP      Begin                     ; jump over data definition
  10. Hello   DB       'Hello!$'                 ; define string to display
  11. Begin:  LEA      DX,byte ptr Hello         ; DS:DX - effective address of string
  12.     MOV      ah,09h                    ; function 09h - output text string
  13.     INT      21h                       ; DOS service call
  14.     MOV      ax,4C00h                  ; function 4Ch - terminate process
  15.     INT      21h                       ; DOS service call
  16. OurProg ENDS                               ; end of program segment
  17.     END       Start
  18.